package com.lzs.bootsafety.common.util.mybatis;

import org.apache.ibatis.session.ResultContext;
import org.apache.ibatis.session.ResultHandler;
import java.util.HashMap;
import java.util.Map;

/**
 *
 */
public class MyBatisResultHandler implements ResultHandler {
    private final Map results = new HashMap();
    @Override
    public void handleResult(ResultContext resultContext) {
        Map map = (Map) resultContext.getResultObject();
        results.put(map.get("configKey"), map.get("configValue"));
    }
    public Map getResults() {
        return results;
    }
}
